﻿/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {

	// %REMOVE_START%
	// The configuration options below are needed when running CKEditor from source files.
	config.plugins = 'dialogui,dialog,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,justify,link,list,liststyle,magicline,maximize,pastetext,pastefromword,removeformat,selectall,showblocks,showborders,sourcearea,stylescombo,tab,table,tabletools,undo,wsc,quicktable,textselection,tableresize,spoiler';
	config.skin = 'bootstrapck';
	// %REMOVE_END%
	config.extraPlugins = 'abbr,abbr2,abbr3';
	config.indentOffset = 24;
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	config.toolbarGroups = [
	                    	{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
	                    	{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
	                    	{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
	                    	{ name: 'forms' },
//	                    	'/',
	                    	{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
	                    	{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
	                    	{ name: 'links' },
	                    	{ name: 'insert' },
//	                    	'/',
	                    	{ name: 'styles' },
	                    	{ name: 'colors' },
	                    	{ name: 'tools' },
	                    	{ name: 'others' },
	                    	{ name: 'about' }
	                    ];
};
CKEDITOR.on('instanceReady',
	      function( evt )
	      {
	         var editor = evt.editor;
	         editor.execCommand('maximize');
	      }
);